package com.ibeetl.admin.console.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;

import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 
* gen by Spring Boot2 Admin 2018-06-13
*/
public class CoreProduct extends BaseEntity {

    //id
    @NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID

    private Integer id;

    //商品名称

    private String name;

    //商品成本

    private String cost;

    //商品折扣

    private String discount;

    //删除标识
    /*逻辑删除标志*/
    @InsertIgnore
    @LogicDelete(value = 1)

    private Integer delFlag;

    //备注

    private String remark;


    private Date createdAt;

    public CoreProduct() {
    }

    /**
     * id
     *
     * @return
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 商品名称
     *
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * 商品名称
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 商品成本
     *
     * @return
     */
    public String getCost() {
        return cost;
    }

    /**
     * 商品成本
     *
     * @param cost
     */
    public void setCost(String cost) {
        this.cost = cost;
    }

    /**
     * 商品折扣
     *
     * @return
     */
    public String getDiscount() {
        return discount;
    }

    /**
     * 商品折扣
     *
     * @param discount
     */
    public void setDiscount(String discount) {
        this.discount = discount;
    }

    /**
     * 删除标识
     *
     * @return
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标识
     *
     * @param delFlag
     */
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 备注
     *
     * @return
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     *
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }


}
